package com.RuiJi.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author Twinkle
 * @PACKAGE_NAME: com.RuiJi.entity
 * @NAME: setmealDish
 * @USER: Twinkle
 * @DATE: 2023/4/10
 * @TIME: 14:28
 * @YEAR: 2023
 * @MONTH: 04
 */
@Data
public class SetmealDish implements Serializable {

    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;

    private String setmealId;

    private String dishId;

    private String name;

    private Double price;

    private Integer copies;

    private Integer sort;

    //插入时填充字段
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    //插入和更新时填充字段
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
    //插入时填充字段
    @TableField(fill = FieldFill.INSERT)
    private Long createUser;
    //插入和更新时填充字段
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updateUser;

    private Integer isDeleted;
}
